import Cookies from 'js-cookie'

const TokenKey: string = 'vue_admin_template_token'


export function getToken():string | undefined{
  return Cookies.get(TokenKey)
}

export function setToken(token:string): string | undefined{
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
